package com.hanbitexam.dao;

import java.io.Reader;
import java.util.List;

import com.hanbitexam.vo.TestVo;
import com.ibatis.common.resources.Resources;
import com.ibatis.sqlmap.client.SqlMapClient;
import com.ibatis.sqlmap.client.SqlMapClientBuilder;

public class FlexDao {
	private static SqlMapClient sqlmapper;
	List<TestVo> list;
	static{
		try{
			Reader reader = Resources.getResourceAsReader("com/hanbitexam/sqlMap/sqlMapConfig.xml");
			//Reader reader = Resources.getResourceAsReader("sqlMapConfig.xml");
			sqlmapper = SqlMapClientBuilder.buildSqlMapClient(reader);
			reader.close();
		}catch(Exception e){
			e.printStackTrace();
			
		}
	}
	public static List selectAll() throws Exception{	

		return sqlmapper.queryForList("selectAll");

	}
}
